import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';

class DialogMiddleWare extends GetMiddleware {
  @override
  int get priority => 1; // 优先级

  @override
  RouteSettings? redirect(String? route) {
    print("跳转$route");
    if (route == '/dialog') {
      return null;
    }else if(route == '/getxDialog'){
      return null;
    }
    return null;
  }
}